<?php

namespace app\index\service\payments;

use app\common\model\Trade;

/**
 * 代付接口
 * ProxyPaymentInterface
 */
interface ProxyPaymentInterface
{
    /**
     * 代付
     * @param Trade $trade
     * @param $companyId
     * @param $userPersonnelId
     * @param bool $arrears
     * @return array
     */
    public function proxyCompanyPay(Trade $trade, $companyId, $userPersonnelId, bool $arrears = false): array;

}
